from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
import time

ChromeIns=ChromeDriverManager().install()
driver=webdriver.Chrome(service=Service(ChromeIns))

driver.get("https://gitee.com")

driver.minimize_window()
driver.maximize_window()
driver.fullscreen_window()
driver.set_window_size(1024, 768)
time.sleep(1)

driver.quit()